package apiday05homework;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FosDemo {
    public static void main(String[] args) throws IOException {
        /*
        FileOutputStream fos = new FileOutputStream("fos1.dat", true);
        fos.write(97);
        fos.write(98);
        System.out.println("写出完毕");
        fos.close();

         */
        FileOutputStream fos = new FileOutputStream("fos2.dat", true);
        fos.write(123);
        fos.write(204);
        System.out.println("写出完毕");
        fos.close();
    }
}
